<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Models\MqttLog;

class MqttLogController extends Controller
{

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(Request $request, MqttLog $log)
    {
        $mqtt_logs = $log->filter($request->all())->orderBy('id','desc')->paginate(config('api.page.limit'));
        $time = $request->time;
        $imei = $request->imei;
        return view('admins.shipment.mqttlog', compact('mqtt_logs','imei','time'));
    }

}
